<?php
namespace core\lib;
class H5Log {
    /**
     * 1. 确定存储方式
     * 2. 写日志
     */
static $logClass;
    static public function init()
    {
        $drive = \core\Config::get('DRIVE', 'log');
        $class = '\core\lib\drive\log\\'.$drive;
        self::$logClass = new $class();
//在核心类，h5cphp中启动
    }
    static public function log($name, $file='log')
    {
        self::$logClass->log($name, $file);
    }
}